package com.kly.user.enums;

/**
 * 操作结果：1-pass
 * @author linqu
 */
public enum LogResultTypeEnum {

    PASS(1, "Pass", "Pass"),


    ;


    private final int type;

    private final String Value;

    private final String description;


    LogResultTypeEnum(int type, String value, String description) {
        this.type = type;
        Value = value;
        this.description = description;
    }

    public int getType() {
        return type;
    }

    public String getValue() {
        return Value;
    }

    public String getDescription() {
        return description;
    }


    public static LogResultTypeEnum fromType(int type) {
        for (LogResultTypeEnum userStatus : values()) {
            if (userStatus.getType() == type) {
                return userStatus;
            }
        }
        return null;
    }

}
